package com.easylinkin.linkappapi.positioning.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * class info :设备定位告警信息
 *
 * @author liuqihang
 * @date 2021/7/22 18:05
 */
@Data
@Accessors(chain = true)
@TableName(value = "sbdw_alarm_info")
public class PositionAlarmInfo {

    @TableId(type= IdType.AUTO)
    private Integer id;

    @TableField(value = "device_code")
    private String deviceCode;

    /**
     * 电子围栏主键ID
     */
    @TableField(value = "fence_id")
    private Integer fenceId;

    /**
     * 电子围栏超时告警类型（ 1:进入超时告警,2:离开超时告警 ）
     */
    @TableField(value = "type")
    private Integer type;

    @TableField(value = "record_id")
    private Integer recordId;

    /**
     * 提示信息
     */
    @TableField(value = "tooltip")
    private String tooltip;

    /**
     * 告警时间
     */
    @TableField(value = "alarm_time")
    private Date alarmTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 0:未发送，1：已发送'
     */
    @TableField(value = "sms_status")
    private Integer smsStatus;

    /**
     * 设备名称
     */
    @TableField(exist = false)
    private String deviceName;

    /**
     * 电子围栏名称
     */
    @TableField(exist = false)
    private String fenceName;

}
